package com.xhsj.user.hr.system.entity;

import com.xhsj.user.hr.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.Version;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 招聘需求申请表
 * </p>
 *
 * @author suxiaolin
 * @since 2020-09-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_hr_zhaopin_demand_apply")
public class TbHrZhaopinDemandApply extends BaseEntity<TbHrZhaopinDemandApply> {

    private static final long serialVersionUID = 1L;

    /**
     * 部门id 逻辑外键 tb_global_organization 表id
     */
    @TableField("department_id")
    private Long departmentId;

    /**
     * 职位id 逻辑外键 tb_global_organization 表id
     */
    @TableField("position_id")
    private Long positionId;

    /**
     * 职位名称
     */
    @TableField(exist = false)
    private String positionName;

    /**
     * 需求人数
     */
    @TableField("amount")
    private Integer amount;

    /**
     * 薪资范畴
     */
    @TableField("salary")
    private String salary;

    /**
     * 到岗时间要求
     */
    @TableField("status")
    private String status;

    /**
     * 汇报对象为该岗位的上级领导  
     */
    @TableField("report_to")
    private Integer reportTo;

    /**
     * 需求原因
     */
    @TableField("reason")
    private String reason;

    /**
     * 职位描述
     */
    @TableField("position_description")
    private String positionDescription;

    /**
     * 岗位职责
     */
    @TableField("position_responsibility")
    private String positionResponsibility;

    /**
     * 岗位要求
     */
    @TableField("position_require")
    private String positionRequire;

    /**
     * 申请时间
     */
    @TableField("apply_time")
    private Date applyTime;

    /**
     * 申请状态
     */
    @TableField("apply_status")
    private Integer applyStatus;

    /**
     * 流程id 外键  tb_global_business id
     */
    @TableField("business_id")
    private Long businessId;


    /**
     * 提交状态 0 保存 1 提交
     */
    @TableField("submit_status")
    private Integer submitStatus;

    /**
     * 审核信息
     */
    @TableField("node_id")
    private Long nodeId;

    /**
     * 节点名称
     */
    @TableField("node_name")
    private String nodeName;

    /**
     * 年龄区间
     */
    @TableField("age_range")
    private String ageRange;

    /**
     * 学历及及专业要求
     */
    @TableField("education_require")
    private String educationRequire;

    /**
     * 技能要求
     */
    @TableField("skill_require")
    private String skillRequire;

    /**
     * 其他要求
     */
    @TableField("other_require")
    private String otherRequire;

    // 申请人部门id
    @TableField(exist = false)
    private Long organizationId;

    // 处理人
    @TableField(exist = false)
    private String handler;

    // 流程任务id
    @TableField(exist = false)
    private Long processTaskId;

    @TableField(exist = false)
    private boolean newPosition = false;


}
